package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbDictionary;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbDictionary is a Querydsl query type for ETbDictionary
 */
@Label("字典表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbDictionary extends RelationalPathBase<ETbDictionary> {

    private static final long serialVersionUID = 1170858189;

    public static final QTbDictionary tbDictionary = new QTbDictionary("tb_dictionary");

    public class PrimaryKeys {

        public final PrimaryKey<ETbDictionary> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseDictionary> tbDictionaryBaseDictionary1Fk = createForeignKey(baseDictionaryId, "id");

    }

    public final StringPath baseDictionaryId = createString("baseDictionaryId");

    public final StringPath code = createString("code");

    public final NumberPath<Integer> dictionaryId = createNumber("dictionaryId", Integer.class);

    public final StringPath id = createString("id");

    public final StringPath name = createString("name");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbDictionary(String variable) {
        super(ETbDictionary.class, forVariable(variable), "null", "tb_dictionary");
        addMetadata();
    }

    public QTbDictionary(String variable, String schema, String table) {
        super(ETbDictionary.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbDictionary(Path<? extends ETbDictionary> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_dictionary");
        addMetadata();
    }

    public QTbDictionary(PathMetadata<?> metadata) {
        super(ETbDictionary.class, metadata, "null", "tb_dictionary");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseDictionaryId, ColumnMetadata.named("base_dictionary_id").withIndex(4).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(code, ColumnMetadata.named("code").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(dictionaryId, ColumnMetadata.named("dictionary_id").withIndex(5).ofType(Types.INTEGER).withSize(10).notNull());
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(name, ColumnMetadata.named("name").withIndex(3).ofType(Types.VARCHAR).withSize(45));
    }

}

